import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import '../../common.css';
export interface IProps extends ICompProps {
    contractAddress?: string;
}
ContractAddress.defaultProps = {} as Partial<IProps>;
function ContractAddress(props: IProps) {
    const { className, style, contractAddress } = props;
    const localClassName = useClassName('ContractAddress', className);
    return (
        <RootView className={localClassName} style={style}>
            <View className="ContractAddress_CardWrap">
                <View className="title">我的合约地址</View>
                <View className="content">{contractAddress}</View>
            </View>
        </RootView>
    );
}
export default React.memo(ContractAddress as FC<IProps>);

const cssBorder = '2px solid #F3F3F3';
const RootView = styled(View)`
    &.ContractAddress {
        margin-bottom: 50px;
      
        .ContractAddress_CardWrap{
            border-bottom: ${cssBorder};
            padding-bottom: 14px;
        }
    }
`;
